package org.example.service;

import org.example.pojo.Book;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author TonySong
 * @date 2024/5/14 0014
 * @time 16:07
 */
@Transactional
public interface IBookService {

    /**
     * 查询所有图书
     * @return
     */
    List<Book> getBooks();

    /**
     * 根据id查询单个图书
     * @param id
     * @return
     */
    Book getBookById(Long id);

    void updateAmount(Long bid);


    String show();

}
